package com.py.apis.user;

import com.py.model.common.dtos.ResponseResult;
import com.py.model.user.dtos.AuthDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-user")
public interface IUserClient {


    /**
     * feign调用用户端查询审核中的用户
     * @param dto
     * @return
     */
    /*
    *  @PostMapping("/list")
    public ResponseResult list(@RequestBody AuthDto dto)*/


    /**
     * 审核查询
     *
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/list")
    public ResponseResult list(@RequestBody AuthDto dto);


    /**
     * 审核驳回
     *
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authFail")
    public ResponseResult authFail(@RequestBody AuthDto dto);


    /**
     * 审核通过
     *
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authPass")
    public ResponseResult authPass(@RequestBody AuthDto dto);

}
